import request from './request'

export const getInfo = (params) =>{
  return request({
    url: '/api/students',
    method:'GET',
    data: params
  })
}

export const deleInfo = (id) =>{
  return request({
    url:`/api/students/${id}`,
    method:'DELETE'
  })
}

export const updateInfo = (id,params) =>{
  return request({
    url:`/api/students/${id}`,
    method:'PUT',
    data: {data: params}
  })
}

export const addInfo = (params) =>{
  return request({
    url: '/api/students',
    method:'POST',
    data: {data: params}
  })
}